package demo

import (
	"fmt"

	"github.com/gin-gonic/gin"
)

func RequestForm() {
	Router := gin.Default()

	Router.POST("/post", func(c *gin.Context) {
		name := c.PostForm("name")
		age := c.DefaultPostForm("age", "18")
		tag, ok := c.GetPostForm("tag")
		fmt.Println(name, age, tag, ok)
	})
	Router.Run(":8080")
}
